package com.NetSunWeiQin.chapter06.fileSever;

import java.net.*;

public class FileURLStreamHandlerFactory implements URLStreamHandlerFactory {
    public URLStreamHandler createURLStreamHandler(String protocol) {
        if (protocol.equals("myftp"))
            return new FileURLStreamHandler();
        else
            return null;
    }
}


